

<?php 
    include('../../Connections/KRAPPERCON.php'); 
	
	$strServ=getParam('strServ','');
	$sizeServ=getParam('sizeServ','0');
	
	if( trim($strServ)!= ''){
	
?>
   <table id="tbl_otarticulos" class="tableIn" width="100%" border="1" rules="all" cellpadding="0" cellspacing="0" > 
        <caption align="left"><strong>Articulos</strong>
         </caption>
          <thead>
          <tr >
               <th>Servicio</th>
               <th>Id Articulo</th>
               <th>Item </th>
               <th>Articulo</th>
 			   <th>Cantidad</th>
          </tr>
          </thead>
          <tbody>
            <?php 
			   
				  
				  $sqlart="call usp_listaTmpArticulos('".$strServ."',".$sizeServ.")";	
				  $resart = $mysqli->exeQuery($sqlart);
				  //doEcho($sqlart);
				  if($resart){	
				    $item=1;
				    while($row = $resart->fetch_assoc()){
			?>		 
				     <tr >	 
                        <td><?php echo $row['desDetSer'] ?></td>
                        <td><?php echo $row['ArticuloID'] ?></td>
                        <td><?php echo $item ?></td>
                        <td><?php echo $row['ArticuloName'] ?></td>
                        
                        <td class="qt"><?php echo $row['Cantidad'] ?></td>
                     </tr>
			<?php		   
			         $item++;
				    }
					$resart->close();
                    $mysqli->check_result();
				  }
			?>
          </tbody>
        </table>

<?php
	}
?>